import AdapterManager, { AdaptaterType } from "../../UIFrame/AdapterManager";
import { FormType } from "../../UIFrame/config/SysDefine";
import UIBase from "../../UIFrame/UIBase";
import UIManager from "../../UIFrame/UIManager";

const {ccclass, property} = cc._decorator;

@ccclass
export default class MenuRightUI extends UIBase {

    formType = FormType.FixedUI;
    
    static prefabPath = "prefabs/UIForms/MenuRightUI";
    
    start () {
        AdapterManager.getInstanse.adapatByType(AdaptaterType.Right, this.node, 60);
    }
    
    onShow() {
     
    }

    onClickEvent_opeOppoUI(e: cc.Event.EventTouch){
        UIManager.getInstance().openUIForm('prefabs/UIForms/adUI/OppoAdUI',1);
    }

    onClickEvent_openVIVOUI(e: cc.Event.EventTouch){
        UIManager.getInstance().openUIForm('prefabs/UIForms/adUI/OppoAdUI',2);
    }

    onClickEvent_openQQUI(e: cc.Event.EventTouch){
        UIManager.getInstance().openUIForm('prefabs/UIForms/adUI/QQAdUI');
    }

    onClickEvent_openWXUI(e: cc.Event.EventTouch){
        UIManager.getInstance().openUIForm('prefabs/UIForms/adUI/WXAdUI');
    }

    onClickEvent_openMZUI(e: cc.Event.EventTouch){
        UIManager.getInstance().openUIForm('prefabs/UIForms/adUI/MeiZuAdUI');
    }

    onClickEvent_openTTUI(e: cc.Event.EventTouch){
        UIManager.getInstance().openUIForm('prefabs/UIForms/adUI/TouTiaoAdUI');
    }

    onClickEvent_openBaiDuUI(e: cc.Event.EventTouch){
        UIManager.getInstance().openUIForm('prefabs/UIForms/adUI/BaiduAdUI');
    }

    onClickEvent_openHuaWeiUI(e: cc.Event.EventTouch){
        UIManager.getInstance().openUIForm('prefabs/UIForms/adUI/HuaweiAdUI');
    }

    onHide() {
        
    }
}
